﻿using System.Windows;
using System.Windows.Controls;

namespace HuiZe.education.Assests.Controls
{
    /// <summary>
    /// CommonTitle.xaml 的交互逻辑
    /// </summary>
    public partial class CommonTitle : UserControl
    {
        public string CommonTitleContent
        {
            get { return (string)GetValue(CommonTitleContentProperty); }
            set { SetValue(CommonTitleContentProperty, value); }
        }
        public static readonly DependencyProperty CommonTitleContentProperty =
            DependencyProperty.Register("CommonTitleContent", typeof(string), typeof(CommonTitle), new PropertyMetadata(""));


        public HorizontalAlignment TitleAlignment
        {
            get { return (HorizontalAlignment)GetValue(TitleAlignmentProperty); }
            set { SetValue(TitleAlignmentProperty, value); }
        }
        public static readonly DependencyProperty TitleAlignmentProperty =
            DependencyProperty.Register("TitleAlignment", typeof(HorizontalAlignment), typeof(CommonTitle), new PropertyMetadata(HorizontalAlignment.Left));


        public CommonTitle()
        {
            InitializeComponent();
        }

        private void close_Click(object sender, RoutedEventArgs e)
        {
            Window window = Window.GetWindow(this);
            window.Close();
        }
    }
}
